package com.eightbears.beboy.base.view.image;

import com.eightbears.beboy.base.util.CommonAPI;

import java.io.File;

public class PictureUtil {


	/**
	 * 根据路径删除图片
	 */
	public static void deleteTempFile(String path) {
		File file = new File(path);
		if (file.exists()) {
			file.delete();
		}
	}


	/**
	 * 获取保存图片的目录
	 * 
	 * @return
	 */
	public static File getAlbumDir() {
		File dir = new File(CommonAPI.CAHCE_IMAGE_FILE);
		if (!dir.exists()) {
			dir.mkdirs();
		}
		return dir;
	}


}
